import 'package:flutter/material.dart';

// Material
// statelessW

class MyApp1 extends StatelessWidget {
  const MyApp1({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      // 设置导航条
      appBar: AppBar(
        title: 
        const Text(
          'Flutter初体验', 
          style: TextStyle(color: Colors.white),
          ), 
        backgroundColor: Colors.red, 
        centerTitle: true,
      ),
      // 设置主体内容
      body: const Center(
        child: Text(
          '主体内容', 
          style: TextStyle(
            fontSize: 30,
            fontWeight: FontWeight.w700
          ),
          ),
      ),
    );
  }
}